package cn.cvs.dao;

import cn.cvs.pojo.SysUser;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SysUserMapper {
    SysUser selectByAccountAndPwd(String account);
    List<SysUser> selectSysUserListBySysUser(@Param("realName") String realName,@Param("roleId") int roleId, @Param("startIndex") int startIndex,@Param("pageSize") int pageSize);
    int listSize(@Param("realName") String realName,@Param("roleId") int roleId);
    int insertSysUser(SysUser user);
    int updateSysUser(SysUser user);
    int deleteSysUser(int id);
    SysUser selectSysUserById(int id);
}
